#!/bin/bash

# 1: running
# 0: stopped

if [ -f "/usr/local/haproxy/etc/haproxy.cfg" ]; then
    count=`ps -ef | grep -v grep | grep -c haproxy.pid`
    if [ $count -ne "0" ]; then
        echo "1"; exit 0
    else
        echo "0"; exit 0
    fi
fi



